package com.xcalendar.management;

import com.xcalendar.database.table.User;
import com.xcalendar.exception.IncorrectNameOrPasswordException;
import com.xcalendar.exception.NameUsedException;


public interface UserManager {
	//login if success, return this user, else throw exception
	public User login(String userName, String password) throws IncorrectNameOrPasswordException;
	//createAccount if fail, throw exception
	public void createAccount(String userName, String password) throws NameUsedException;
	public User updateUser(User user);
}
